package com.fastbee.oss.service.impl;

import com.fastbee.oss.domain.OssConfig;
import com.fastbee.oss.mapper.OssConfigMapper;
import com.fastbee.oss.service.IAutoConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AutoConfigServiceImpl implements IAutoConfigService {

    @Autowired
    private OssConfigMapper ossConfigMapper;

    @Override
    public List<OssConfig> selectOssConfigByPlatformType(Integer platformType) {
        OssConfig query = new OssConfig();
        query.setPlatformType(platformType);
        return ossConfigMapper.selectOssConfigList(query);
    }
}
